<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 2016/6/6
 * Time: 11:29
 */
namespace common\entities\common;

use Yii;
use common\entities\ConfigEntity;

/**
 * This is the model class for table "myscrm_erpauthenticationinfo".
 *
 * @property string $AuthenticationInfoId
 * @property string $encrypt_servurl
 * @property string $encrypt_username
 * @property string $encrypt_pwd
 * @property boolean $encrypt_ishttps
 * @property string $organizationId
 * @property string $CreatedOn
 * @property string $AuthName
 */
class MyscrmErpauthenticationinfoEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_erpauthenticationinfo';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['AuthenticationInfoId'], 'required'],
            [['encrypt_ishttps'], 'boolean'],
            [['CreatedOn'], 'safe'],
            [['AuthenticationInfoId', 'organizationId'], 'string', 'max' => 36],
            [['encrypt_servurl'], 'string', 'max' => 4000],
            [['encrypt_username', 'encrypt_pwd', 'AuthName'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'AuthenticationInfoId' => 'Authentication Info ID',
            'encrypt_servurl' => 'Encrypt Servurl',
            'encrypt_username' => 'Encrypt Username',
            'encrypt_pwd' => 'Encrypt Pwd',
            'encrypt_ishttps' => 'Encrypt Ishttps',
            'organizationId' => 'Organization ID',
            'CreatedOn' => 'Created On',
            'AuthName' => 'Auth Name',
        ];
    }
}